package com.ysy.logistics.entities.system;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @ClassDescription:
 * @Author:姚斯羽
 * @Create:2025/3/13 10:07
 **/
@Data
@TableName("user_role")
@Schema(name = "user_role", description = "用户角色表")
public class UserRole {
    @Schema(description = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;
    @Schema(description = "用户id")
    @TableField("user_id")
    private String userId;
    @Schema(description = "角色id")
    @TableField("role_id")
    private String roleId;
}
